package mest.service.cxj;


import mest.Dto.cxj.WorkFileDto;
import mest.entity.work_file;
import mest.util.ResultObj;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WorkFileService {


    /**
     * 查询所有工序档案
     *
     * @param page
     * @param limit
     * @return
     */
    List<WorkFileDto> selectAllWorkFile(Integer page, Integer limit, String workName, String theirDb);

    /**
     * 查询工序档案数量
     *
     * @return
     */
    Integer selectCountWorkFile(String workName, String theirDb);

    /**
     * 添加工序档案
     */
    boolean insertWorkFile(work_file workFile, String theirDb);

    /**
     * 假删数据
     */
    boolean deleteWorkFile(Integer id, String theirDb);

	ResultObj update(Map<String, Object> map);

}

